#pragma once

#include "Img.h"

class TextureDB
{
private:
    Img *t;
    int totalTextures;
    void resize();
    bool fileExists(const char *filename);
public:
    TextureDB();
    ~TextureDB();
    int textureCount();
    Img* make(const char *filename);
    void use(int textureIndex);
};

extern TextureDB textureDB;